package com.viknix.threadpool.manager.common.util;

import java.util.Objects;

/**
 * @Author: Dongqi
 * @Date: 2021/11/01 19:22
 * @Version 1.0
 * @Description: ClassUtil
 */
public class ClassUtil {

    public static boolean isAssignableFrom(Class clazz, Class cls) {
        Objects.requireNonNull(cls, "cls");
        return clazz.isAssignableFrom(cls);
    }

    public static String getCanonicalName(Class cls) {
        Objects.requireNonNull(cls, "cls");
        return cls.getCanonicalName();
    }

}
